const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  token: state => state.user.token,
  avatar: state => state.user.avatar,
  // name: state => state.user.name
  name: state => state.user.userInfo.username, // 用户名
  staffPhoto: state => state.user.userInfo.staffPhoto, // 用户头像
  companyId: state => state.user.userInfo.companyId, // 公司 ID 从user模块里的state的userInfo对象里取值
  userId: state => state.user.userInfo.userId // 动态路由判断用
}
export default getters
